package com.bba.manager.order.controller;

import com.bba.manager.common.util.ResponseVO;
import com.bba.manager.order.service.impl.OrderDetailsServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zzy
 * @since 2025-08-12
 */
@RestController
@RequestMapping("/orderDetails")
public class OrderDetailsController {
    @Autowired
    private OrderDetailsServiceImpl orderDetailsServiceImpl;

    @GetMapping("/{id}")
    public ResponseVO getByid(@PathVariable String id) {
        return ResponseVO.success(orderDetailsServiceImpl.getById(id));
    }
}